package com.ych.modules.base.dbEntity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * Author: Usopp.tsui
 * Date: 2021/2/28
 * Time: 13:14
 * Description:
 */
@Data
@TableName("t_item_bidding")
@ApiModel(value = "TItemBiddingEntity", description = "数据库-项目竞价表")
public class TItemBiddingEntity extends AbstractPageEntity {
    @TableId(value = "bidding_id")
    @ApiModelProperty(value = "主键", dataType = "String", notes = "主键")
    private String biddingId;

    @TableId(value = "item_id")
    @ApiModelProperty(value = "竞价项目主键", dataType = "String", notes = "竞价项目主键")
    private String itemId;

    @TableId(value = "user_id")
    @ApiModelProperty(value = "竞价用户主键", dataType = "String", notes = "竞价用户主键")
    private String userId;

    @TableId(value = "create_time")
    @ApiModelProperty(value = "创建时间", dataType = "Date", notes = "创建时间")
    private Date createTime;

    @TableId(value = "gold_coin_amount")
    @ApiModelProperty(value = "竞价金币数量", dataType = "BigDecimal", notes = "竞价金币数量")
    private BigDecimal goldCoinAmount;

    @TableId(value = "bidding_type")
    @ApiModelProperty(value = "竞价状态类型码值 10017001：竞价中", dataType = "String", notes = "竞价状态类型码值 10017001：竞价中")
    private String biddingType;

    @TableId(value = "wechat_no")
    @ApiModelProperty(value = "微信号", dataType = "String", notes = "微信号")
    private String wechatNo;

    @TableField(exist = false)
    @ApiModelProperty(value = "用户名称", dataType = "String", notes = "用户名称")
    private String userName;

    @TableField(exist = false)
    @ApiModelProperty(value = "头像url地址", dataType = "String", notes = "头像url地址")
    private String userHeadUrl;

    @TableField(exist = false)
    @ApiModelProperty(value = "竞价用户手机号", dataType = "String", notes = "竞价用户手机号")
    private String mobile;

}
